﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ModernShopping.WebUserControls
{
    public partial class UCPopup : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public void InitPopup(string Title, string Message, string TitleColor = null)
        {
            this.Title.InnerHtml = Title;
            if (TitleColor != null)
            {
                this.Title.Style.Add("Color", "red");
            }
            this.Message.InnerHtml = Message;
            UpdatePanel.Update();
        }
        public void Show()
        {
            ModalPopupExtender.Show();
        }
    }
}